package com.bdqn.service.impl;

import java.util.List;

import com.bdqn.dao.ScheduleDao;
import com.bdqn.dao.impl.ScheduleDaoImpl;
import com.bdqn.entity.Schedule;
import com.bdqn.service.ScheduleService;

public class ScheduleServiceImpl implements ScheduleService {

	private ScheduleDao scDao = new ScheduleDaoImpl();

	@Override
	public List<Schedule> findAllSchedule() {
		return scDao.findAllSchedule();
	}

	@Override
	public List<Schedule> findSchedule(String name) {
		return scDao.findSchedule(name);
	}

	@Override
	public int addSchedule(Schedule sc) {
		return scDao.addSchedule(sc);
	}
	@Override
	public int delSchedule(int id) {
		return scDao.delSchedule(id);
	}
}
